package com.fary.beans.factory.support;

import com.fary.core.SpringException;
import com.fary.core.io.Resource;
import com.fary.core.io.ResourceLoader;

public interface BeanDefinitionReader {

	BeanDefinitionRegistry getRegistry();

	ResourceLoader getResourceLoader();

	ClassLoader getBeanClassLoader();

	BeanNameGenerator getBeanNameGenerator();

	int loadBeanDefinitions(Resource resource) throws SpringException;

	int loadBeanDefinitions(Resource... resources) throws SpringException;

	int loadBeanDefinitions(String location) throws SpringException;

	int loadBeanDefinitions(String... locations) throws SpringException;

}
